package com.zy.openchat.core.model.wallet;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class ThirdRechargeChannelInfo implements Parcelable {
    //客服号
    public long csUserId;
    //支付渠道
    public List<ThirdRechargeChannels> channels;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.csUserId);
        dest.writeTypedList(this.channels);
    }

    public ThirdRechargeChannelInfo() {
    }

    protected ThirdRechargeChannelInfo(Parcel in) {
        this.csUserId = in.readLong();
        this.channels = in.createTypedArrayList(ThirdRechargeChannels.CREATOR);
    }

    public static final Creator<ThirdRechargeChannelInfo> CREATOR = new Creator<ThirdRechargeChannelInfo>() {
        @Override
        public ThirdRechargeChannelInfo createFromParcel(Parcel source) {
            return new ThirdRechargeChannelInfo(source);
        }

        @Override
        public ThirdRechargeChannelInfo[] newArray(int size) {
            return new ThirdRechargeChannelInfo[size];
        }
    };
}
